<!DOCTYPE html>
<html lang="en">

<head><meta name="generator" content="Hexo 3.9.0">
	<!-- hexo-inject:begin --><!-- hexo-inject:end --><meta http-equiv="content-type" content="text/html; charset=utf-8">
	<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport">
	
	<!-- title -->
	
	<title>
	 
	稻草人的编程之路
	</title>
	
	<!-- keywords,description -->
	 
		<meta name="description" content="人生的意义，不在于最终获得了什么，而在于曾经努力追求过什么">
	

	<!-- favicon -->
	
	<link rel="shortcut icon" href="/favicon.ico">
	
  

	<link rel="stylesheet" href="/css/main.css">
	<link rel="stylesheet" href="https://cdn.staticfile.org/font-awesome/4.7.0/css/font-awesome.min.css">
	<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@9.17.1/build/styles/darcula.min.css">

	<script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@9.17.1/build/highlight.min.js"></script>
	<script src="https://cdn.jsdelivr.net/npm/jquery@3.4.1/dist/jquery.min.js"></script>
	<script src="https://cdn.jsdelivr.net/npm/jquery-pjax@2.0.1/jquery.pjax.min.js"></script>
	<script src="/js/main.js"></script>
	
		<script src="https://cdn.jsdelivr.net/npm/leancloud-storage/dist/av-min.js"></script>
		<script src="https://cdn.jsdelivr.net/npm/valine@1.3.10/dist/Valine.min.js"></script>
	
	
		<script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script><!-- hexo-inject:begin --><!-- hexo-inject:end -->
	
</head>

<body>
	<!-- hexo-inject:begin --><!-- hexo-inject:end --><header id="header">
    <a id="title" href="/" class="logo">稻草人的编程之路</a>

	<ul id="menu">
		<li class="menu-item">
			<a href="/about" class="menu-item-link">ABOUT</a>
		</li>
		
		<li class="menu-item">
			<a href="https://github.com/wangxiaochuang" class="menu-item-link" target="_blank">
				<i class="fa fa-github fa-2x"></i>
			</a>
		</li>
	</ul>
</header>

	
<div id="sidebar">
	<button id="sidebar-toggle" class="toggle" ><i class="fa fa-arrow-right " aria-hidden="true"></i></button>
	
	<div id="site-toc">
		<input id="search-input" class="search-input" type="text" placeholder="search...">
		<div id="tree">
			

			
							<ul>
								<li class="directory">
									<a href="#" class="directory">
										<i class="fa fa-plus-square-o"></i>
										linux
									</a>
									
							<ul>
								<li class="directory">
									<a href="#" class="directory">
										<i class="fa fa-plus-square-o"></i>
										tools
									</a>
									
							<ul>
								<li class="file">
									<a href="/2019/08/18/100.html">
										awk
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/2019/08/18/102.html">
										grep
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/2019/08/18/101.html">
										sed
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
								</li>
								
							</ul>
			
								</li>
								
							</ul>
			
		</div>
	</div>
</div>

	<!-- 引入正文 -->
	<div id="content">
		<div id="index">
	
		<div class="index-li">
			<a href="/2019/08/18/101.html">
				<h2 class="index-title">
					sed
				</h2>
				<div class="index-brief">
					 sed
 基本用法
有数据文件data.txt内容如下：

1, jack, male, 28, beijing
2, yuanyuan, female, 26, chongqing
3, xiao, female, 26, sichuan
4, straw, male, 25, shanghai
					...
				</div>
			</a>
                <div class="article-meta">
				    <span>2019-08-18</span>
                    
                            
                                
                                    <span>
                                        <i class="fa fa-folder" aria-hidden="true"></i>
                                        <a href="/categories/linux/">linux</a>
										
											>
										
                                    </span>
                                
                            
                                
                                    <span>
                                        <i class="fa fa-folder" aria-hidden="true"></i>
                                        <a href="/categories/linux/tools/">tools</a>
										
                                    </span>
                                
                            
                    
                </div>
		</div>	
	
		<div class="index-li">
			<a href="/2019/08/18/102.html">
				<h2 class="index-title">
					grep
				</h2>
				<div class="index-brief">
					
					...
				</div>
			</a>
                <div class="article-meta">
				    <span>2019-08-18</span>
                    
                            
                                
                                    <span>
                                        <i class="fa fa-folder" aria-hidden="true"></i>
                                        <a href="/categories/linux/">linux</a>
										
											>
										
                                    </span>
                                
                            
                                
                                    <span>
                                        <i class="fa fa-folder" aria-hidden="true"></i>
                                        <a href="/categories/linux/tools/">tools</a>
										
                                    </span>
                                
                            
                    
                </div>
		</div>	
	
		<div class="index-li">
			<a href="/2019/08/18/100.html">
				<h2 class="index-title">
					awk
				</h2>
				<div class="index-brief">
					 awk
awk不仅仅是linux系统上的一个命令，它更是一种编程语言，可以用来处理数据和生成报告
awk处理的数据来源可以是文件，也可以是标准输入；其可以在命令行上直接编辑命令进行操作，同时还可以写成程序去处理复杂的任务
 基本用法
有数据文件内容如下：

jack, male, 28, beij
					...
				</div>
			</a>
                <div class="article-meta">
				    <span>2019-08-18</span>
                    
                            
                                
                                    <span>
                                        <i class="fa fa-folder" aria-hidden="true"></i>
                                        <a href="/categories/linux/">linux</a>
										
											>
										
                                    </span>
                                
                            
                                
                                    <span>
                                        <i class="fa fa-folder" aria-hidden="true"></i>
                                        <a href="/categories/linux/tools/">tools</a>
										
                                    </span>
                                
                            
                    
                </div>
		</div>	
	
	
	<div id="index-paginator">
		
	</div>
</div>

	</div>
	<div id="footer">
	<p>
	©2019-<span id="footerYear"></span> 
	<a href="/">wangxiaochuang</a> 
	
	
		|
		<span id="busuanzi_container_site_pv">
			pv
			<span id="busuanzi_value_site_pv"></span>
		</span>
		|
		<span id="busuanzi_container_site_uv"> 
			uv
			<span id="busuanzi_value_site_uv"></span>
		</span>
	
	</p>
</div>
<script type="text/javascript"> 
	document.getElementById('footerYear').innerHTML = new Date().getFullYear() + '';
</script>

	<button id="totop-toggle" class="toggle"><i class="fa fa-angle-double-up" aria-hidden="true"></i></button><!-- hexo-inject:begin --><!-- hexo-inject:end -->
</body>
</html>